package com.gzxw.mogublog.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzxw.mogublog.commons.entity.Admin;
import com.gzxw.mogublog.commons.entity.Blog;
import com.gzxw.mogublog.commons.entity.CategoryMenu;
import com.gzxw.mogublog.xo.vo.BlogVO;

import java.util.List;


public interface BlogService extends IService<Blog> {

    /**
     * 获取博客列表
     *
     * @param blogVO
     * @return
     */
    IPage<Blog> getPageList(BlogVO blogVO);

    String addBlog(BlogVO blogVO);

    String edit(BlogVO blogVO);

    String deleteBlog(BlogVO blogVO);

    IPage<Blog> getBlogPageByLevel(Integer level, Long currentPage, Integer useSort);

    IPage<Blog> getNewBlog(Long currentPage, Long pageSize);

    Blog setTagByBlog(Blog blog);

    Blog setSortByBlog(Blog blog);

    Integer getBlogPraiseCountByUid(String uid);

    String praiseBlogByUid(String uid);

    IPage<Blog> getSameBlogByTagUid(String tagUid);

    List<Blog> setTagAndSortByBlogList(List<Blog> list);

    IPage<Blog> getSameBlogByBlogUid(String blogUid);
}
